﻿/*******************************************************************************
 * Copyright @ 2017 YunSpace.Framework 版权所有
 * Author: GaoTang
 * Description: YunSpace 快速开发平台
 * Website：http://www.yunspace.com.cn
*********************************************************************************/
#region USING SYSTEM
using YunSpace.Core;
using YunSpace.Data;
using YunSpace.Domain.Entity.MiniSite;
using YunSpace.Domain.IRepository.MiniSite;
#endregion

namespace YunSpace.Repository.MiniSite
{
    public class CustomerRepository : RepositoryBase<CustomerEntity>, ICustomerRepository
    {
        public bool CreateOrUpdateGetUIId(string customerId, string getUIId)
        {
            var result = false;
            var entity = FindEntity(customerId);
            if (!entity.IsEmpty())
            {
                entity.F_GetUIId = getUIId;

                var num = Update(entity);
                return num > 0;

            }

            return result;
        }
    }
}

